package org.springblade.modules.bank.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
@Data
public class DataAuthEntity implements Serializable {
    /**
     * 构建权限过滤系统，方便每个Entity增加权限参数
     */
    @ApiModelProperty(value = "数据权限")
    @TableField(exist = false)
    private Integer dataPermission;
    @ApiModelProperty(value = "部门id")
    @TableField(exist = false)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long queryDeptId;
    @ApiModelProperty(value = "父级部门id")
    @TableField(exist = false)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long queryParentDeptId;

    @TableField(exist = false)
    private String queryDateStart;
    @TableField(exist = false)
    private String queryDateEnd;
}
